package com.example.myapplication.adapter;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.myapplication.R;
import com.example.myapplication.bean.UserModel;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

@EViewGroup(R.layout.person_item)
public class UserItemView extends LinearLayout {

    @ViewById
    TextView tv_first, tv_last;

    public UserItemView(Context context) {
        super(context);
    }

    public void bind(UserModel userModel) {
        tv_first.setText(userModel.getFirstName());
        tv_last.setText(userModel.getLastName());
    }
}
